package com.icode.service.house;

import com.icode.core.dto.house.ExchangePoolDTO;
import com.icode.core.model.house.ExchangePool;
import com.icode.core.model.user.User;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: xianfei
 * Date: 15-6-8
 * Time: 下午3:28
 * To change this template use File | Settings | File Templates.
 */
public interface ExchangeService {

    boolean addToExchangePool(String myHouseGuid);

    List<ExchangePoolDTO> findAllExchangePool(String type, String userInfoGuid);

    boolean doExchange(String userExchangePoolGuid, String exchangePoolGuid, User user);

    List<ExchangePoolDTO> findExchangePoolByUserInfo(String myHouseGuid);

    ExchangePoolDTO findExchangePoolByGuid(String exchangePoolGuid);

    ExchangePool findSingleExchangePool(String exchangePoolGuid);

    BigDecimal toConfirmExchange(String userExchangePoolGuid, String exchangePoolGuid);

    void chooseExchange(String myHouseGuid);

    List<ExchangePoolDTO> findExchangePoolByMyHouse(String myHouseGuid);

    String getServiceFee(String exchangePoolGuid);

    List<ExchangePoolDTO> findExchangeHouseByUsername(String username);
}
